export function masking(input: any): string {
    let inputString = `${input}`
    const regex = /([http|https]:\/\/[^:]+):[^:@]+(@.*)/;
    const replacedString = inputString.replace(regex, '$1$2');
    return replacedString;
}

export function replaceEnvVar(Input: string): string{
    const regex = /\$\{([a-zA-Z_][a-zA-Z0-9_]*)\}/g;
    return Input.replace(regex, (_, envVar) => {
        return process.env[envVar] || '';
    });
}